<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-orientation" content="portrait">
    <title>享云管家</title>
    <link rel="stylesheet" href="../../styles/h5/reset.min.css"/>
    <link rel="stylesheet" href="../../styles/h5/errortankuang.css"/>
    <!--以上为公共css样式-->
    <link rel="stylesheet" href="../../styles/h5/index.css"/>

    <script charset="utf-8" type="text/javascript" src="../../scripts/h5/jquery-1.9.1.min.js"></script>
    <script charset="utf-8" type="text/javascript" src="../../scripts/h5/jquery.modal.js"></script>
    <!--以上为公共js文件-->
</head>
<body>
<div class="zz-top"></div>
<div class="zz-list">
    <ul>
        <!--<li>
            <a href="javascript:;">
                <span class="zz-bank">支付宝费率</span>
                <span class="zz-replace zz-replace-padding">0.38%</span>
            </a>
        </li>-->
    </ul>
</div>

</body>
<script charset="utf-8" type="text/javascript" src="../../scripts/h5/utils.js"></script>
<script charset="utf-8" type="text/javascript">
    var queryURLParameter = utils.queryURLParameter();
    var storeId = queryURLParameter.storeId;
    var productId = queryURLParameter.productId;
    var data = '';
    
    function bindHTML() {
        var str = '';
        for (var i = 0; i < data.length; i++) {
            var curData = data[i];
            var alipayRates = curData["alipayRates"]/1000 + "%";
			var wecatRates = curData["wecatRates"]/1000 + "%";
            
            str += '<li>';
            str += '<a href="javascript:;">';
            str += '<span class="zz-bank">微信费率</span>';
            str += '<span class="zz-replace zz-replace-padding">' + alipayRates + '</span>';
            str += '</a>';
            str += '</li>';
            str += '<li>';
            str += '<a href="javascript:;">';
            str += '<span class="zz-bank">支付宝费率</span>';
            str += '<span class="zz-replace zz-replace-padding">' + wecatRates + '</span>';
            str += '</a>';
            str += '</li>';
        }
        $(".zz-list ul").html(str);
    }
    //初始化
    $.ajax({
        url: utils.ajaxUrl()+"h5/store/receiver/getStore",
        data: {
            storeId: storeId
        },
        async: false,
        type: 'get',
        success: function (res) {
        	var res = JSON.parse(res);
        	//console.log(res);
            if (res && res.retCode == '0000') {
                data = res["storeVo"];
                bindHTML();
            } else {
                utils.newModalPrompt(res.retMsg);
            }
        }
    });
</script>
<script charset="utf-8" type="text/javascript" src="../../scripts/h5/index.js"></script>
<script charset="utf-8" type="text/javascript">

</script>
</html>